/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.chart.attachment.chartattachment;

import twaver.TWaverConst;
import twaver.chart.LineChart;
import twaver.network.ui.ElementUI;

public class LineElementAttachcment extends ScaleElementAttachment {

	public LineElementAttachcment(String name, ElementUI ui) {
		super(name, ui);
	}

	public LineElementAttachcment(String name, ElementUI ui, boolean minimized, boolean shrinked) {
		super(name, ui, minimized, shrinked);
	}

	private LineChart chart;

	protected void initChart() {
		chart = new LineChart();
		chart.setBackgroundVisible(true);
		chart.setXAxisVisible(true);
		chart.setYAxisVisible(true);
		chart.setLineType(TWaverConst.LINE_TYPE_AREA);
		chart.setUpperLimit(100);
		chart.setLowerLimit(0);
		setChartProperty(chart);
	}
}